$OpenBSD: patch-Source_Files_FFmpeg_SDL_ffmpeg_c,v 1.2 2014/08/10 21:35:32 brad Exp $

Deal with newer FFmpeg API.

--- Source_Files/FFmpeg/SDL_ffmpeg.c.orig	Thu Jul  4 20:33:29 2013
+++ Source_Files/FFmpeg/SDL_ffmpeg.c	Sun Aug 10 01:48:35 2014
@@ -57,6 +57,11 @@ extern "C"
 #endif
 #endif
 
+/* set magic number for 1 second of 48khz 32bit audio */
+#ifndef AVCODEC_MAX_AUDIO_FRAME_SIZE
+#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000
+#endif
+
 #ifdef __cplusplus
 extern "C"
 {
@@ -324,7 +329,7 @@ void SDL_ffmpegFree( SDL_ffmpegFile *file )
     {
         if ( file->type == SDL_ffmpegInputStream )
         {
-            av_close_input_file( file->_ffmpeg );
+            avformat_close_input( &file->_ffmpeg );
         }
         else if ( file->type == SDL_ffmpegOutputStream )
         {
